package com.hmy.uaa.bo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "部门信息入参", description = "部门信息入参")
public class DepartmentRequest {

    @ApiModelProperty(value = "id")
    @NotNull(groups = DepartmentRequest.Update.class)
    private Long id;

    @NotEmpty
    @Size(max = 64)
    @ApiModelProperty(value = "部门名称", required = true)
    private String name;


    @ApiModelProperty(value = "父Id", required = true)
    private Long parentId;

    public interface Insert {

    }

    public interface Update {

    }
}
